package com.powernode.boss.common.exceptions.type;

import com.powernode.boss.common.enums.SysCode;


public class SysException extends RuntimeException{

    private SysCode sysCode;

    public SysException() {
    }

    public SysException(String message) {
        super(message);
    }

    public SysException(SysCode sysCode) {
        super(sysCode.getText());
        this.sysCode = sysCode;
    }

    public SysCode getSysCode() {
        return sysCode;
    }
}
